<template>
    <Form ref="form" :model="condition" :label-width="90">
        <Row>
<Col :span="12" :v-if="condition.base.show"><FormItem :label="l('base')" prop="base">                    <Input v-model="condition.base.value"> </Input>
</FormItem></Col>
<Col :span="12" :v-if="condition.id.show"><FormItem :label="$t('id')" prop="id">                    <Input v-model="condition.id.value"> </Input>
</FormItem></Col>
<Col :span="24" :v-if="condition.dbFullName.show"><FormItem :label="l('dbFullName')" prop="dbFullName">                    <Input v-model="condition.dbFullName.value"> </Input>
</FormItem></Col>
<Col :span="12" :v-if="condition.columns.show"><FormItem :label="l('columns')" prop="columns">                    <Input v-model="condition.columns.value"> </Input>
</FormItem></Col>
<Col :span="24" :v-if="condition.tags.show"><FormItem :label="l('tags')" prop="tags">                    <Input v-model="condition.tags.value"> </Input>
</FormItem></Col>
<Col :span="12" :v-if="condition.nameRule.show"><FormItem :label="l('nameRule')" prop="nameRule">                    <Input v-model="condition.nameRule.value"> </Input>
</FormItem></Col>
<Col :span="12" :v-if="condition.entityName.show"><FormItem :label="l('entityName')" prop="entityName">                    <Input v-model="condition.entityName.value"> </Input>
</FormItem></Col>
<Col :span="12" :v-if="condition.dbTableName.show"><FormItem :label="l('dbTableName')" prop="dbTableName">                    <Input v-model="condition.dbTableName.value"> </Input>
</FormItem></Col>
<Col :span="24" :v-if="condition.tableDescription.show"><FormItem :label="l('tableDescription')" prop="tableDescription">                    <Input v-model="condition.tableDescription.value"> </Input>
</FormItem></Col>
<Col :span="12" :v-if="condition.creationTime.show"><FormItem :label="l('creationTime')" prop="creationTime">                    <DatePicker type="daterange" v-model="condition.creationTime.value"></DatePicker>
</FormItem></Col>
<Col :span="12" :v-if="condition.creatorUserId.show"><FormItem :label="l('creatorUserId')" prop="creatorUserId">                    <Input v-model="condition.creatorUserId.value"> </Input>
</FormItem></Col>
<Col :span="12" :v-if="condition.lastModificationTime.show"><FormItem :label="l('lastModificationTime')" prop="lastModificationTime">                    <DatePicker type="daterange" v-model="condition.lastModificationTime.value"></DatePicker>
</FormItem></Col>
<Col :span="12" :v-if="condition.lastModifierUserId.show"><FormItem :label="l('lastModifierUserId')" prop="lastModifierUserId">                    <Input v-model="condition.lastModifierUserId.value"> </Input>
</FormItem></Col>
<Col :span="12" :v-if="condition.deletionTime.show"><FormItem :label="l('deletionTime')" prop="deletionTime">                    <DatePicker type="daterange" v-model="condition.deletionTime.value"></DatePicker>
</FormItem></Col>
<Col :span="12" :v-if="condition.status.show"><FormItem :label="l('status')" prop="status">                    <Input v-model="condition.status.value"> </Input>
</FormItem></Col>
        </Row>     
    </Form>
</template>
<script>
    import Api from './api'
    export default {
        name: 'Add',
        data() {
            return {
                condition: {
base:{op:"Equal",value:null,show:true},
id:{op:"Equal",value:null,show:true},
dbFullName:{op:"Equal",value:null,show:true},
columns:{op:"Equal",value:null,show:true},
tags:{op:"Equal",value:null,show:true},
nameRule:{op:"Equal",value:null,show:true},
entityName:{op:"Equal",value:null,show:true},
dbTableName:{op:"Equal",value:null,show:true},
tableDescription:{op:"Equal",value:null,show:true},
creationTime:{op:"Range",value:null,show:true},
creatorUserId:{op:"Equal",value:null,show:true},
lastModificationTime:{op:"Range",value:null,show:true},
lastModifierUserId:{op:"Equal",value:null,show:true},
deletionTime:{op:"Range",value:null,show:true},
status:{op:"Equal",value:null,show:true},
                                },
            }
        },
        methods: {
            handleClose() {
                                this.$emit('on-close')
            },
      l(key) {
                                key = "DbEntityDefined" + "." + key;
                                return this.$t(key)
      }
        }
    }
</script>